package com.ruibang.glass.quality.domain.req;

import com.ruibang.glass.common.utils.RegexpUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * @Author: songJinKang
 * @CreateTime: 2023-12-14  21:14
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class LabelSerialNumReq {
    @ApiModelProperty("品级")
    @NotBlank(message = "品级不可为空")
    private String grade;
    @ApiModelProperty("发货lot")
    @NotNull(message = "发货lot不可为空")
    @Pattern(regexp = RegexpUtils.NON_ZERO_NEGATIVE_INTEGERS_REGEXP, message = "请输入正整数")
    private Integer lot;
    @ApiModelProperty("流水号")
    @NotNull(message = "流水号不可为空")
    private Integer serialNumber;
    @Pattern(regexp = RegexpUtils.NON_ZERO_NEGATIVE_INTEGERS_REGEXP, message = "请输入正整数")
    @ApiModelProperty("连号")
    @NotNull(message = "连号不可为空")
    @Pattern(regexp = RegexpUtils.NON_ZERO_NEGATIVE_INTEGERS_REGEXP, message = "请输入正整数")
    private Integer lh;
}
